import 'dart:convert';

import 'package:enterprise_v8/generated/json/app_update_entity.g.dart';
import 'package:enterprise_v8/generated/json/base/json_field.dart';

@JsonSerializable()
class AppUpdateEntity {
  AppUpdateEntity();

  factory AppUpdateEntity.fromJson(Map<String, dynamic> json) => $AppUpdateEntityFromJson(json);

  /// 升级内容介绍
  late String upgradeDescription = '';

  /// 是否强制升级 1:强制升级 0:不强制升级
  late int isForcedUpgrade = 0;

  /// 下载地址
  late String downloadAddress = '';

  /// 版本号 eg:0.0.1
  late String version = '';

  Map<String, dynamic> toJson() => $AppUpdateEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
